import { get } from './request';

// 地图数据
export const getCityJSON = function(baseURL, code) {
  return get(`/json/${code}.json`, {}, {
    awalysSuccess: true,
    baseURL: process.env.NODE_ENV === 'development' ? ' ' : '/mgszdyzj'
  });
};

export const getJSON = function(url) {
  return get('/szjjApplication/mapIcon/330200_full.json', {}, {
    awalysSuccess: true,
    baseURL: ' '
  });
};

// 省 地图数据
export const getProJSON = function(url) {
  return get('/szjjApplication/mapIcon/330000_full.json', {}, {
    awalysSuccess: true,
    baseURL: ' '
  });
};
